﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Migrations
{
    /// <inheritdoc />
    public partial class modify_table_PatnBaseInfo : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Age",
                table: "MainPatnBaseInfo");

            migrationBuilder.DropColumn(
                name: "AgeUnt",
                table: "MainPatnBaseInfo");

            migrationBuilder.DropColumn(
                name: "Brdy",
                table: "MainPatnBaseInfo");

            migrationBuilder.DropColumn(
                name: "Gend",
                table: "MainPatnBaseInfo");

            migrationBuilder.DropColumn(
                name: "PatnId",
                table: "MainPatnBaseInfo");

            migrationBuilder.DropColumn(
                name: "PstnName",
                table: "MainPatnBaseInfo");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Age",
                table: "MainPatnBaseInfo",
                type: "integer",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "AgeUnt",
                table: "MainPatnBaseInfo",
                type: "integer",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "Brdy",
                table: "MainPatnBaseInfo",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Gend",
                table: "MainPatnBaseInfo",
                type: "integer",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PatnId",
                table: "MainPatnBaseInfo",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "PstnName",
                table: "MainPatnBaseInfo",
                type: "text",
                nullable: false,
                defaultValue: "");
        }
    }
}
